<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="修改密码 | 网络下单系统 | ${clieUser.clie.estName}" />
<%@ include file="../inc/OnlineTitle.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script language="javascript">
	function doSave(){
		document.getElementById("buttonDiv").style.display="none";
		document.getElementById("waitDiv").style.display="";
		frm.submit();
	}
	function doCancel(){
		window.close();
	}
	function showMe(){
		document.getElementById("oldPassword").focus();
		showFormErrorMsg();
	}
</script>
</head>
<body oncontextmenu="return false" scroll="no" onLoad="showMe();" class="sheet" style="padding-top:10px;text-align:center;">
<div class="sheet-main" id="bodyDiv" style="width:340px;text-align:left;margin:auto;">
	<form name="frm" method="post">
	  <div class="sheet-list" style="width:100%">
	    <div class="modal-main search-business">
	    	<div style="width:100%;">
				<c:set var="pageTopTitle" value="修改密码" />
				<%@ include file="../inc/PageTop.jsp"%> 
				<table border="0" cellspacing="1" cellpadding="1" align="center" class="table-0">
				<tr>
			      	<th style="width:40%">单位名称：</th>
			      	<td style="width:60%">${command.clieName}</td>
				</tr>
				<tr>
			      	<th>用户名：</th>
			      	<spring:bind path="command.user.userName">
			      	<td>
			      		<input class="TextBox readonly" style="width:120px;" readonly="true" type="text" maxlength="15" onKeyUp="goNextInput('oldPassword');" id="${status.expression}" name="${status.expression}" value="${status.value}">
				          <script language="javascript">
				          	setFormErrorMsg('<c:out value="${status.errorMessage}" />',1,'user.userName');
				          </script>
			     	</td>
			     	</spring:bind>
				</tr>
				<tr>
			      	<th><span class="MustInput">*</span>原密码：</th>
			      	<spring:bind path="command.oldPassword">
			      	<td>
			      		<input type="password" class="TextBox" style="width:120px;" maxlength="15" onKeyUp="goNextInput('currentPassword');" id="${status.expression}" name="${status.expression}" value="${status.value}">
				        <script language="javascript">
				          	setFormErrorMsg('<c:out value="${status.errorMessage}" />',2,'oldPassword');
				        </script>
			     	</td>
			     	</spring:bind>
				</tr>
				<tr>
			      	<th><span class="MustInput">*</span>新密码第1次：</th>
			      	<spring:bind path="command.currentPassword">
			      	<td>
			      		<input type="password" class="TextBox" style="width:120px;" maxlength="15" onKeyUp="goNextInput('confirmPassword');" id="${status.expression}" name="${status.expression}" value="">
				        <script language="javascript">
				          	setFormErrorMsg('<c:out value="${status.errorMessage}" />',3,'currentPassword');
				        </script>
			     	</td>
			     	</spring:bind>
				</tr>
				<tr>
			      	<th><span class="MustInput">*</span>新密码第2次：</th>
			      	<spring:bind path="command.confirmPassword">
			      	<td>
			      		<input type="password" class="TextBox" style="width:120px;" maxlength="15" onKeyUp="goNextInput('');" id="${status.expression}" name="${status.expression}" value="">
				          <script language="javascript">
				          	setFormErrorMsg('<c:out value="${status.errorMessage}" />',4,'confirmPassword');
				          </script>
			     	</td>
			     	</spring:bind>
				</tr>
				</table>
			</div>	
	  	</div>
	  </div>
		<div class="modal-buttom" id="buttonDiv">
			<input type="button" class="buttom-a" value=" 提交修改 " onClick="doSave();">
		</div>
		<div class="modal-buttom" id="waitDiv" style="display:none">
			<span style="color:#ffffff">请稍候...</span>
		</div>
	</form>
</div>		
</body>
</html>